﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GioHang.ascx.cs" Inherits="Pages_GioHang" %>

  <script  language="javascript" type="text/javascript">
      $(document).ready(function () {

          $.ajax({
              type: "POST",
              contentType: "application/json; charset=utf-8",
              url: "ShowFlower.aspx/test",
              data: "{}",
              dataType: "json",
              success: function (data) {
                  $("#cart_items").html(data.d);
              }
          });

          $.ajax({
              type: "POST",
              contentType: "application/json; charset=utf-8",
              url: "ShowFlower.aspx/Gia",
              data: "{}",
              dataType: "json",
              success: function (data) {
                
                  $("#cprice").html(data.d);
              }
          });


          $.ajax({
              type: "POST",
              contentType: "application/json; charset=utf-8",
              url: "ShowFlower.aspx/SoLuong",
              data: "{}",
              dataType: "json",
              success: function (data) {
                
                  $("#citem").html(data.d);
              }
          });

          //   $("#cart_items").append("<span>demo</span>");
      });
  </script>
  
    <div style="float:right; ">  <div id="cart_container" style="height:484px;"> 
                    <div  id="cart_title">
                      <span>Shopping Cart</span></div>
                     <div id="cart_toolbar">
                      <div id="cart_items" class="back"></div>
                      
                     </div>
              <div id="navigate">
              <div id="nav_left">
                  <a href="" id="btn_prev"><</a>
                  <a href="" id="btn_next">></a>
                  <a href="" id="btn_clear">Clear Cart</a>
              </div>
              <div id="nav_right"><br />
                  <span class="sptext">
                      <label>Items </label><label class="count" id="citem">0</label>
                  </span><br /><br />
                  <span class="sptext">
                      <label>Price </label><label class="count" id="cprice">$ 0</label>
                  <br />
                  </span>
              </div>
              <div class="clear"><a href="GioHang.aspx" id="btn_CheckOut">Check Out</a></div>
              </div>
             </div>
</div>